const goTo= function dateFormat(url){
	
	uni.navigateTo({
		url:url
	})
}
const goToTab= function dateFormat(url){
	
	uni.switchTab({
		url:url
	})
}
const goBack= function dateFormat(delta){
	
	uni.navigateBack({
		delta:delta
	})
}
const goReLaunch= function dateFormat(url){
	
	uni.reLaunch({
		url:url
	})
}
const goRedirectTo= function dateFormat(url){
	
	uni.redirectTo({
		url:url
	})
}
const goToPage= function dateFormat(url,hasLogin){
		if(hasLogin){
			if(!uni.getStorageSync("isLogin")){
				uni.showModal({
					content:"您还没有登录，请先登录！",
					success(res){
						if(res.confirm){
							uni.navigateTo({
								url:"/pages/commer/wxlogin"
							})
						}
					}
				})
				return
			}
		}
		uni.navigateTo({
			url:url
		})
}

export  {goTo,goBack,goToTab,goReLaunch,goRedirectTo,goToPage}